{extend name="public/base"}

{block name="title"}
开摩邦网-维修端
{/block}

{block name="style"}
{css href="/static/wechat/css/index.css" /}
{css href="/static/wechat/popo/css/store.css" /}
{/block}

{block name="body"}

<div class="pageControl store">
    <div class="nav">
        <div class="msui_navTop">
            <a class="msui_navTop-back" href="{:url('r_member/index')}" _href="javascript:history.back();"><i class="micon-back_fff"></i></a>
            <h1 class="msui_navTop-title">{$repair.repair_name}</h1>
            <a class="msui_navTop-icon" href="{:url('w_message/index', ['type' => 1])}" num="{$repair.new_msg_num|default=0}">
                {gt name="$repair.new_msg_num|default=0" value="0"}
                <i class="to_messages_png"></i>
                {else /}
                <i class="micon-message2"></i>
                {/gt}
                <span class="weui-badge weui-badge_dot"></span>
            </a>
        </div>
    </div>
    <div class="weui-cell store_main_padding">
        <a href="#">
            <div class="weui-cell__hd">
                <div class="weui-label">
                    <a class="msui_tabCell-img msui_tableImg-circle" href="{:url('store_message')}">
                        <img src="{$repair.logo|get_img_url}" />
                    </a>
                </div>
            </div>
            <div class="weui-cell__bd">
                <p class="store_card">
                    <a href="javascript:;" class="cl-3333 fs08">{$repair.repair_name}</a>
                    {if condition="$repair.id_card_in_hand!=''"}
                    <a href="javascript:;"> <img src="/static/wechat/images/store_03.jpg" alt=""/></a>
                    {/if}
                    {if condition="$repair.business_license!=''"}
                    <a href="javascript:;"> <img src="/static/wechat/images/store_05.jpg" alt=""/></a>
                    {/if}
                </p>
                <p class="cl-9999 fs06">{$repair.phone}</p>
            </div>
            <div class="weui-cell__ft">
                {if condition="$repair.qiandao.code==200 "}
                <a href="/wechat/w_registration/" class="weui-badge bg-ffa store_badge">签到</a>
                {else/}
                <a href="/wechat/w_registration/" class="weui-badge bg-ffa store_badge" style="background:#a09e9c;">已签到</a>
                {/if}
            </div>
        </a>
    </div>
    <div class="weui-flex store_count bg-fff">
        <a class="weui-flex__item text-center" href="/wechat/w_registration/">
            <p class="fs08">{$repair.member.point}</p>
            <p class="cl-9999 fs07">摩豆</p>
        </a>
        <a href="{:url('r_coupon/coupon_list')}" class="weui-flex__item text-center">
        <p class="fs08">{$repair.coupon_num}</p>
        <p class="cl-9999 fs07">优惠券</p>
        </a>
        <a href="{:url('r_wallet/index')}" class="weui-flex__item text-center" style="border:none;">
            <p class="fs08">{$repair.money}</p>
            <p class="cl-9999 fs07">钱包</p>
        </a>
    </div>
    <div class="weui-cells">
        <a class="weui-cell store_detail weui-cell_access" href="{:url('r_orders/index')}">
            <div class="weui-cell__hd">
                <div class="weui-label">
                    <img class="img-response1" src="/static/wechat/images/store_10.jpg">
                </div>
            </div>
            <div class="weui-cell__bd">
                <p>
                    <span class="cl-3333 fs07">全部订单</span>
                </p>
            </div>
            <div class="weui-cell__ft"></div>
        </a>
        <div class="weui-cell store_detail1">
            <a href="{:url('r_orders/index', ['status' => 11])}">
                <p>
                    <img src="/static/wechat/images/store_14.jpg" alt=""/>
                    <!--添加class为weui-badge和数值即可出现样式,消除显示要removeClass-->
                    {$repair.order_num.yj?'<i class="weui-badge">'.$repair.order_num.yj.'</i>':''}
                </p>
                <p class="cl-9999 fs06">议价中</p>
            </a>
            <a href="{:url('r_orders/index', ['status' => 2])}">
                <p>
                    <img src="/static/wechat/images/store_16.jpg" alt=""/>
                    {$repair.order_num.dfk?'<i class="weui-badge">'.$repair.order_num.dfk.'</i>':''}
                </p>
                <p>待付款</p>
            </a>
            <a href="{:url('r_orders/index', ['status' => 3])}">
                <p>
                    <img src="/static/wechat/images/store_18.jpg" alt=""/>
                    {$repair.order_num.fwz?'<i class="weui-badge">'.$repair.order_num.fwz.'</i>':''}
                </p>
                <p>服务中</p>
            </a>
            <a href="{:url('r_orders/index', ['status' => 4])}">
                <p>
                    <img src="/static/wechat/images/store_20.jpg" alt=""/>
                    {$repair.order_num.dqr?'<i class="weui-badge">'.$repair.order_num.dqr.'</i>':''}
                </p>
                <p>待确认</p>
            </a>
            <a href="{:url('r_austin/index')}">
                <p>
                    <img src="/static/wechat/images/store_22.jpg" alt=""/>
                    {$repair.austin_num.tk?'<i class="weui-badge">'.$repair.austin_num.tk.'</i>':''}
                </p>
                <p>退款/售后</p>
            </a>
        </div>
    </div>

    <div class="store_detail2 bg-fff store_list">
        <a href="{:url('store_message')}">
            <p>
                <img src="/static/wechat/images/store_29.jpg" alt=""/>
                <!--添加class为weui-badge和数值即可出现样式,消除显示要removeClass-->
                <!--<i class="weui-badge">2</i>-->
            </p>
            <p>店铺信息</p>
        </a>
        <a href="{:url('w_member_role_info/save_role_info', ['type' => 1])}">
            <p>
                <img src="/static/wechat/images/store_31.jpg" alt=""/>
                <i></i>
            </p>
            <p>店主信息</p>
        </a>
        <a href="{:url('r_member/order_push_so')}" tmp="/pushOrder/pushOrder.html">
            <p>
                <img src="/static/wechat/images/store_34.jpg" alt=""/>
                <i></i>
            </p>
            <p>推送订单</p>
        </a>
        <a href="{:url('r_austin/complaint_index')}" tmp="../sale/sale.html">
            <p>
                <img src="/static/wechat/images/store_36.jpg" alt=""/>
                {$repair.austin_num.ss?'<i class="weui-badge">'.$repair.austin_num.ss.'</i>':''}
            </p>
            <p>投诉</p>
        </a>
    </div>
    <div class="store_detail2 bg-fff">
        <a href="{:url('r_comment/index', ['id' => $repair['id']])}">
            <p>
                <img src="/static/wechat/images/store_42.jpg" alt=""/>
                <i></i>
            </p>
            <p>评价</p>
        </a>
        <a href="{:url('w_distribution/index', ['type' => 1])}">
            <p>
                <img src="/static/wechat/images/store_43.jpg" alt=""/>
                <i></i>
            </p>
            <p>我的分销</p>
        </a>
        <a href="{:url('service/index', ['type' => 1])}">
            <p>
                <img src="/static/wechat/images/store_44.jpg" alt=""/>
                <i></i>
            </p>
            <p>客服</p>
        </a>
        <a href="{:url('r_orders/deal_order_repair', ['status' => 1])}">
            <p>
                <img src="/static/wechat/images/store_34.jpg" alt=""/>
                {$repair.order_deal_num?'<i class="weui-badge">'.$repair.order_deal_num.'</i>':''}
            </p>
            <p>销售采购</p>
        </a>
    </div>
    <div class="store_detail2 bg-fff">
        <a href="{:url('r_wallet/gathering')}">
            <p>
                <img src="/static/wechat/images/store_42.jpg" alt=""/>
                <i></i>
            </p>
            <p>我要收款</p>
        </a>
        <a href="{:url('set/index', ['type' => 1])}">
            <p>
                <img src="/static/wechat/images/store_45.jpg" alt=""/>
                <i></i>
            </p>
            <p>设置</p>
        </a>
    </div>
</div>

{/block}